﻿using System;
using Data.Contracts.Models;

namespace Data.Common
{
    internal class BaseUser : BaseModel, IUser
    {
        #region fields

        private string _username;
        private string _password;
        private string _email;

        #endregion

        #region properties

        public string Username
        {
            get { return _username; }
            set
            {
                _username = value;
                NotifyPropertyChanged(() => Username);
            }
        }

        public string Password
        {
            internal get { return _password; }
            set
            {
                _password = value;
                NotifyPropertyChanged(() => Password);
            }
        }

        public string Email
        {
            get { return _email; }
            set
            {
                _email = value;
                NotifyPropertyChanged(() => Email);
            }
        }

        #endregion

        #region ctor

        public BaseUser(Guid id)
            : base(id)
        {

        }

        #endregion
    }
}
